package com.itheima02.day03;

/**
 * @author 刘全
 * @date 2021/7/18
 */
public class test01 {
    public static void main(String[] args) {
        new outer(){

            @Override
            public void say() {
                System.out.println("苏晋丕是憨丕");
            }
        }.say();
        //outer.inter i = new outer().new inter();
        //System.out.println(i.a);
        //i.show();
        //outer s = new outer();
        //s.method();
    }
}
interface outer{
    public class inter{
        int a = 10;
        private void show(){
            System.out.println("憨丕");
            System.out.println(b);
        }
    }
    public void say();
    int b = 20;
    public default void method(){
        inter i = new inter();
        System.out.println("憨丕真憨丕");
        //System.out.println(i.a);
        i.show();
    }
}
class interimpl implements outer{

    @Override
    public void say() {
        System.out.println("");
    }
}